package com.gaofeng.day19;

import java.util.TreeMap;

public class demo07 {
    public static void main(String[] args) {
        //
        TreeMap<Student,String> tm = tm = new TreeMap<>();
        Student stu1 = new Student("zs",12);
        Student stu2 = new Student("ls",35);
        Student stu3 = new Student("wa",24);

        tm.put(stu1,"jiangsu");
        tm.put(stu2,"hubei");
        tm.put(stu3,"wuhan");
        System.out.println(tm);
    }
}
